Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Page 1 of 2 1 2 >
Topic Options
#254432 - 17/04/2005 12:33 "smartctl" for diagnosing drive issues
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
EDIT: Note, this stuff requires Hijack v426 or higher

I'm nowhere near an empeg today, but here you will find a compiled static binary for "smartctl", which can be downloaded and run (hopefully) on an Empeg/Rio Car unit.

It has a ton of confusing options, but basically you need to do the following to see if your hard drive is good or not:

#STEP-1:
./smartctl -s on /dev/hda
./smartctl -l error /dev/hda

#If the output looks good, next try this:

#STEP-2:
./smartctl -t short /dev/hda
# wait a few minutes
./smartctl -l selftest /dev/hda
./smartctl -l error /dev/hda

#Again, if the output looks good, then do the lloonngg test,
which will perform a full media scan for bad sectors.

#STEP-3:
./smartctl -t long /dev/hda
# wait a few hours
./smartctl -l selftest /dev/hda
./smartctl -l error /dev/hda

Cheers


Edited by mlord (17/04/2005 16:16)

Top
#254433 - 17/04/2005 12:39 Re: "smartctl" for diagnosing drive issues [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Updated original post above with a link to the downloadable binary.

Top
#254434 - 17/04/2005 13:44 Re: "smartctl" for diagnosing drive issues [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Dude. Thank you so much.
_________________________
Tony Fabris

Top
#254435 - 17/04/2005 14:02 Re: "smartctl" for diagnosing drive issues [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
empeg:/drive0/var/smartctl# ./smartctl -l error /dev/hda
smartctl version 5.33 [arm-empeg-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Error SMART Status command failed: Input/output error
A mandatory SMART command failed: exiting. To continue, add one or more '-T perm
issive' options.


I don't think it means the drive is bad because it's actually working fine right now and able to play music and such. After a FSCK it even finished the 2-gig download I'd started earlier without complaint, and did a proper database rebuild.
_________________________
Tony Fabris

Top
#254436 - 17/04/2005 14:58 Re: "smartctl" for diagnosing drive issues [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Probably due to our ancient kernel missing a feature or two.

But just do like it suggests, and insert a -T permissive option immediately after smartctl and before all of the original command line flags, on each invocation of smartctl.

Or for that matter, use -T verypermissive instead.

Cheers


Edited by mlord (17/04/2005 15:00)

Top
#254437 - 17/04/2005 15:02 Re: "smartctl" for diagnosing drive issues [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Oh, and I suppose it may be necessary to do smartctl -s on /dev/hda once before all of the other commands are issued.

Top
#254438 - 17/04/2005 15:08 Re: "smartctl" for diagnosing drive issues [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Mmm.. okay, yes, our empeg/hijack kernels are missing the HDIO_DRIVE_TASK ioctl(), needed by smartctl. I'll add it into Hijack, and then all of this stuff should work.

Cheers

Top
#254439 - 17/04/2005 15:35 Re: "smartctl" for diagnosing drive issues [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Tony: try installing this (deleted) copy of Hijack, and then try smartctl on that, please.

Thanks


Edited by mlord (17/04/2005 16:06)

Top
#254440 - 17/04/2005 15:57 Re: "smartctl" for diagnosing drive issues [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Working now. Doing the 2-minute wait...
_________________________
Tony Fabris

Top
#254441 - 17/04/2005 16:04 Re: "smartctl" for diagnosing drive issues [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Looks good so far. Keeps saying "No errors logged".

Going to do the long test in just a little while after I run an errand.

Thanks again for your help!
_________________________
Tony Fabris

Top
#254442 - 17/04/2005 16:15 Re: "smartctl" for diagnosing drive issues [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Okay, good. I've just released that same Hijack as v426 now. No need for you to upgrade from the special v425+ copy.

Cheers

Top
#254443 - 17/04/2005 16:33 Re: "smartctl" for diagnosing drive issues [Re: mlord]
SE_Sport_Driver
carpal tunnel

Registered: 05/01/2001
Posts: 4903
Loc: Detroit, MI USA
Mark, any chance of getting all these cool little tools you've released onto you HiJack page? This, fidsift and the one that lets us have large root playlists (and bookmarks) all in one page would be awesome.
_________________________
Brad B.

Top
#254444 - 17/04/2005 16:34 Re: "smartctl" for diagnosing drive issues [Re: SE_Sport_Driver]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
I think I need somebody to manage this kind of stuff for me/us on riocar.org, really.

Cheers

Top
#254445 - 17/04/2005 17:56 Re: "smartctl" for diagnosing drive issues [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Okay, I've added this to the FAQ. I've used your instruction text with a few small edits. Thanks for all your help. The long test is running now....
_________________________
Tony Fabris

Top
#254446 - 17/04/2005 18:07 Re: "smartctl" for diagnosing drive issues [Re: tfabris]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Long test complete. No errors:

q
Restored terminal settings
Remounting first music partition read-only
Remounting second music partition read-only
No secondary hard disk
Player exited normally: 0
Switching to shell-player loop
Starting bash.
empeg:/empeg/bin# cd /drive0/var/smartctl
empeg:/drive0/var/smartctl# ./smartctl -s on /dev/hda
smartctl version 5.33 [arm-empeg-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF ENABLE/DISABLE COMMANDS SECTION ===
SMART Enabled.

empeg:/drive0/var/smartctl# ./smartctl -l error /dev/hda
smartctl version 5.33 [arm-empeg-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Error Log Version: 1
No Errors Logged

empeg:/drive0/var/smartctl# ./smartctl -t long /dev/hda
smartctl version 5.33 [arm-empeg-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF OFFLINE IMMEDIATE AND SELF-TEST SECTION ===
Sending command: "Execute SMART Extended self-test routine immediately in off-line mode".
Drive command "Execute SMART Extended self-test routine immediately in off-line mode" successful.
Testing has begun.
Please wait 55 minutes for test to complete.
Test will complete after Sun Apr 17 20:04:32 2005

Use smartctl -X to abort test.
empeg:/drive0/var/smartctl# ./smartctl -l selftest /dev/hda
smartctl version 5.33 [arm-empeg-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Extended offline Completed without error 00% 4635 -
# 2 Short offline Completed without error 00% 4634 -

empeg:/drive0/var/smartctl# ./smartctl -l error /dev/hda
smartctl version 5.33 [arm-empeg-linux-gnu] Copyright (C) 2002-4 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Error Log Version: 1
No Errors Logged

empeg:/drive0/var/smartctl# exit
logout
Shell exit
Starting player
Timezone: US/Pacific
Hijack: intercepting config.ini

player.cpp : 385:empeg-car 2.00 2003/04/01.
_________________________
Tony Fabris

Top
#254447 - 18/04/2005 01:22 Re: "smartctl" for diagnosing drive issues [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Well, that's pretty definitive. The drive is A-okay.

Cheers

Top
#254448 - 22/01/2006 04:46 Re: "smartctl" for diagnosing drive issues [Re: tfabris]
Snowshoe
new poster

Registered: 04/04/2004
Posts: 16
Loc: Midwest
I've been trying to use smartctl to see if the original 12g disk or the disk added later are on their way out as I suspect & can't get it to work. The disks still work but did recently make some strange clicks today. One of two drives is suspect, the ethernet about this time didn't want to connect but after a cool down session (unplugged for awhile) it works fine now.
Any way using the instructions here, I have the smartctl file in it's directory, I have the file chmod 755, I think as it says -rwxr-xr-x. I get to the shell prompt & try to execute the smartctl file by typing in ./smartctl -s on /dev/hda at the prompt. I continue to get "no such file or directory' error even though I'm in that directory.
Any ideas on what's missing?
Mk2 running Developer 2.0 final/Hijack v.444
emphatic

Edited-Odd behaviour now, upon exiting shell in Hyperterminal the player rebooted w/o Hijack installed and my startup logo reverted back to the stock animation logo. I've re uploaded Hijack to the player now.


Edited by Snowshoe (22/01/2006 05:02)

Top
#254449 - 22/01/2006 13:43 Re: "smartctl" for diagnosing drive issues [Re: Snowshoe]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Foolproof instructions:

ftp your.empeg.ip.address
userid: root
password: whatever
cd /
site rw
put smartctl
chmod 0755 smartctl
site ro
quit


Now hook up the serial connection, get a command prompt, and do:

/smartctl -s on /dev/hda
/smartctl -a /dev/hda

Top
#254450 - 22/01/2006 15:39 Re: "smartctl" for diagnosing drive issues [Re: mlord]
Snowshoe
new poster

Registered: 04/04/2004
Posts: 16
Loc: Midwest
Thanks Mark I'll try that. I actually tried to use FTP first using WS_FTP but smartctl wouldn't run from there either, my knowledge is limited on both methods but Hyperterminal has usually been pretty successful for me. So I chalked it up to the drive being bad. I'm trying the new approach now.

Top
#254451 - 22/01/2006 23:06 Re: "smartctl" for diagnosing drive issues [Re: mlord]
Snowshoe
new poster

Registered: 04/04/2004
Posts: 16
Loc: Midwest
Foolproof instructions unfortunately don't work for me I guess . I've had a helluva time here getting things to work. First ethernet stopped working (connecting to player) again even though it's worked flawlessly before. Hyperterminal was giving just as many quirks until I reinstall developer image again.
For some reason even though smartctl is in it's own directory and the file is there & it's been made executable, the darn file won't run. What's the filesize suppose to be? I have d/l the file several times to make sure it wasn't corrupt. For some reason when I exited Hyperterminal Hijack menu was missing & the LED flash has returned to default speed. I can reinstall Hijack but the fact it keeps disappearing is strange, it's never happened before. I'm stumped any suggestions, the player is still playing music & w/the exception of Hijack missing seems normal although all personalized settings defaulted.

Top
#254452 - 22/01/2006 23:40 Re: "smartctl" for diagnosing drive issues [Re: mlord]
Snowshoe
new poster

Registered: 04/04/2004
Posts: 16
Loc: Midwest
Quote:
Now hook up the serial connection, get a command prompt, and do:

Now by this using Hyperterminal right?

Top
#254453 - 23/01/2006 00:15 Re: "smartctl" for diagnosing drive issues [Re: mlord]
Snowshoe
new poster

Registered: 04/04/2004
Posts: 16
Loc: Midwest
OK I've figured out what I doing wrong, instead of ./smartctl -s on /dev/hda I didn't know that the .bin extension was required but I think I tried that route before. I discovered that the changes I made v.439 of Hijack instead of v.444 & used the Hijack feature of 'Force DC power mode'. I'll get back as to if these did indeed make it work.


Edited by Snowshoe (23/01/2006 00:39)

Top
#254454 - 23/01/2006 00:32 Re: "smartctl" for diagnosing drive issues [Re: Snowshoe]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Linux doesn't have the concept of "file extensions" -- that's really only something for MS-DOS (and its brethern). If you named the file "/fred.george", then the command to invoke is "/fred.george". Or "smartctl.bin". Or whatever.

-ml

Top
#254455 - 23/01/2006 00:46 Re: "smartctl" for diagnosing drive issues [Re: mlord]
Snowshoe
new poster

Registered: 04/04/2004
Posts: 16
Loc: Midwest
so when I renamed it .bin myself I didn't need to OK got it. Thanks. I've tried it w/o the player in 'DC Car mode' & it still works. I installed v444 (using LogoEdit 1.7) back again & am having trouble again w/Hyperterminal saying 'unable to open com port'. If Hyperterminal does connect it won't go into 'shell prompt'.
Update-I still have v.444 on the player & am having trouble getting Logo Edit 1.7 or Hyperterminal to connect, I get 'com port error' on Logo Edit or 'unable to open com port' error in Hyperterminal.
Update-OK I have Hijack v.439 back on my player after using Emplode to reinstall devoloper v.2.00 on player then Logo Edit to install Hijack. Hyperterminal connects w/no problem to shell. Somewhere I'm missing a switch or something along the changes in Hijack versions or something. Any help w/that?


Edited by Snowshoe (23/01/2006 02:30)

Top
#254456 - 23/01/2006 07:43 Re: "smartctl" for diagnosing drive issues [Re: Snowshoe]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Mark, I believe what might be happening is that your recent changes to the way Hijack deals with the serial port are now causing people (well, one person so far) to have problems with existing tools and existing FAQs and sets of instructions. I could be wrong about this, though. I just seem to remember about a month or two ago reading one of your hijack changes, and thinking to myself, "suddenly a bunch of serial port stuff will stop working for a lot of people." Dunno if this is due to that or not. Anyway, if that's what it is, is there anything you can offer him by way of what to do to solve the problem?
_________________________
Tony Fabris

Top
#254457 - 23/01/2006 10:27 Re: "smartctl" for diagnosing drive issues [Re: tfabris]
Snowshoe
new poster

Registered: 04/04/2004
Posts: 16
Loc: Midwest
I hate to make all the trouble, I thought maybe there was some switch or config.ini menu change I missed. A person could revert back to a previous Hijack version in order to perform the disk check since they most likely be checking the disk all that often. I did find errors though as I suspected, don't know what they mean yet but a new drive is on it's way. I want to transfer all the data before it goes tits-up.

Top
#254458 - 23/01/2006 13:18 Re: "smartctl" for diagnosing drive issues [Re: Snowshoe]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Quote:
I hate to make all the trouble, I thought maybe there was some switch or config.ini menu change I missed.


Yes. Hijack Menu, "Serial Port Assignment", "Player Uses Serial Port". Then change it back to "Apps use Serial Port" once you're done with hyperterm. Reboot required immediately after each change.

-ml

Top
#254459 - 23/01/2006 15:12 Re: "smartctl" for diagnosing drive issues [Re: mlord]
JBjorgen
carpal tunnel

Registered: 19/01/2002
Posts: 3584
Loc: Columbus, OH
That begs to be added to the Hyperterminal entry in the FAQ. Updating wiki now...
_________________________
~ John

Top
#254460 - 23/01/2006 19:27 Re: "smartctl" for diagnosing drive issues [Re: JBjorgen]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
I'm just wondering, if this new behavior breaks hyperterminal, what other stuff does it break? How many other FAQ entries do I have to update? Oh, and what version of Hijack implemented this feature?
_________________________
Tony Fabris

Top
#254461 - 23/01/2006 20:07 Re: "smartctl" for diagnosing drive issues [Re: tfabris]
JBjorgen
carpal tunnel

Registered: 19/01/2002
Posts: 3584
Loc: Columbus, OH
Fortunately, having just copied most of the FAQ over to the wiki, it appears that you link to that one FAQ article just about every time a serial connection is required. According to the Hijack website, this appeared in v440. You can see the addition I made in the wiki here.
_________________________
~ John

Top
#254462 - 23/01/2006 20:33 Re: "smartctl" for diagnosing drive issues [Re: tfabris]
schofiel
carpal tunnel

Registered: 25/06/1999
Posts: 2993
Loc: Wareham, Dorset, UK
Caught me too. Press knob to get to HiJack, go to the settings for the COM port, change it to "player uses port", connect with Hyperterm.
_________________________
One of the few remaining Mk1 owners... #00015

Top
#254463 - 23/01/2006 20:42 Re: "smartctl" for diagnosing drive issues [Re: schofiel]
JBjorgen
carpal tunnel

Registered: 19/01/2002
Posts: 3584
Loc: Columbus, OH
Here's the v441 thread where it was announced.
_________________________
~ John

Top
#254464 - 23/01/2006 20:59 Re: "smartctl" for diagnosing drive issues [Re: JBjorgen]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
Okay, I updated the FAQ. I put it up at the top of the entry. Thanks!
_________________________
Tony Fabris

Top
#254465 - 23/01/2006 21:12 Re: "smartctl" for diagnosing drive issues [Re: JBjorgen]
Snowshoe
new poster

Registered: 04/04/2004
Posts: 16
Loc: Midwest
Boy do I feel foolish. I D/L'd w/o checking BBS on what the new version was for, which is what I usually don't do. Most of the time the changes don't affect my use, but I like to keep it updated. Sorry for the trouble, move along nothing to see here.


Edited by Snowshoe (23/01/2006 21:13)

Top
#254466 - 23/01/2006 21:31 Re: "smartctl" for diagnosing drive issues [Re: schofiel]
Snowshoe
new poster

Registered: 04/04/2004
Posts: 16
Loc: Midwest
I'll be damned, I never noticed that extra menu entry in Hijack. Sorry Mark for the trouble.

Top
#254467 - 23/01/2006 22:34 Re: "smartctl" for diagnosing drive issues [Re: Snowshoe]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Oh, heck.. it still gets me from time to time as well.

I might change it again someday when I have time -- it should really use the "old" behaviour up until some app actually accesses the serial point, at which time it should disconnect the player from it. I think that (or an option for that) would be ideal.

Cheers

Top
#254468 - 24/01/2006 00:51 Re: "smartctl" for diagnosing drive issues [Re: mlord]
JBjorgen
carpal tunnel

Registered: 19/01/2002
Posts: 3584
Loc: Columbus, OH
Or how 'bout giving the player control when it detects a ctrl-c? Maybe not...I guess your idea is better.
_________________________
~ John

Top
#254469 - 24/01/2006 07:07 Re: "smartctl" for diagnosing drive issues [Re: JBjorgen]
tman
carpal tunnel

Registered: 24/12/2001
Posts: 5528
Quote:
Or how 'bout giving the player control when it detects a ctrl-c? Maybe not...I guess your idea is better.

That'd be really confusing if it did that.

Top
#254470 - 28/01/2006 22:16 Re: "smartctl" for diagnosing drive issues [Re: tman]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
Quote:
Quote:
Or how 'bout giving the player control when it detects a ctrl-c? Maybe not...I guess your idea is better.

That'd be really confusing if it did that.

Agreed. Personally I find it a bit confusing that hijack is making any change to the default behavior without the user selecting it. I'm sure Mark had a reason, but I must have missed it. So why isn't the default to let the player use the serial port unless the user specifically changes it? I think I'm still running the hijack version from just before this change so this is going to get me when I next update hijack.

-Mike
_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#254471 - 28/01/2006 22:55 Re: "smartctl" for diagnosing drive issues [Re: mcomb]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14493
Loc: Canada
Quote:
why isn't the default to let the player use the serial port unless the user specifically changes it?


That *is* the default. Unless you install Hijack. Then, the default becomes "enable Hijack's features", which requires that the player's output not go to the serial port, but rather, be intercepted by Hijack.

Duh.

But as I said already, that's not the best way. The best would probably be to have the player's stuff go to the serial port, and *still* be intercepted/used by Hijack. As before The Change.

Cheers!

Top
#254472 - 28/01/2006 23:41 Re: "smartctl" for diagnosing drive issues [Re: mlord]
mcomb
pooh-bah

Registered: 31/08/1999
Posts: 1649
Loc: San Carlos, CA
Quote:
Duh.

I just reread your original thread describing the change and I understand the reasoning for the change now. I'd still argue that it is counterintuitive, but you provided fair warning so whatever floats your twinkie.

-Mike
_________________________
EmpMenuX - ext3 filesystem - Empeg iTunes integration

Top
#254473 - 29/01/2006 17:50 Re: "smartctl" for diagnosing drive issues [Re: mlord]
Snowshoe
new poster

Registered: 04/04/2004
Posts: 16
Loc: Midwest
I'm about to do a drive change & of course it involves Hyperterminal. If a person was to forget to change the serial port assignment beforehand would that be hazardous or could it be resolved after the fact?

Top
#254474 - 29/01/2006 23:48 Re: "smartctl" for diagnosing drive issues [Re: Snowshoe]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31597
Loc: Seattle, WA
If you're doing the drive change according to the Drive Upgrade Guide, Hijack isn't part of the procedure. Without hijack installed, the serial port assignment thing isn't an issue.
_________________________
Tony Fabris

Top
#254475 - 30/01/2006 02:50 Re: "smartctl" for diagnosing drive issues [Re: tfabris]
Snowshoe
new poster

Registered: 04/04/2004
Posts: 16
Loc: Midwest
OK thanks Tony I think I have a bad new laptop drive. I've done a lot of swapping & reading of posts for answers. The 'builder upgrade' file can't find a pump. Another drive works in it's place so I've ruled out bad cables & header solders. Any problems associated w/Fujitsu Travelstar 40G drives in a Mk2a that anyone recalls?


Edited by Snowshoe (30/01/2006 02:50)

Top
#254476 - 31/01/2006 19:26 Re: "smartctl" for diagnosing drive issues [Re: Snowshoe]
Shonky
pooh-bah

Registered: 12/01/2002
Posts: 2009
Loc: Brisbane, Australia
Do you have the jumpers set correctly?

Are you using it in tandem with another drive? There are quite rare cases where some drives "don't play well with others". They will certainly play up if there are two jumpers and both are set to slave or both to master.
_________________________
Christian
#40104192 120Gb (no longer in my E36 M3, won't fit the E46 M3)

Top
Page 1 of 2 1 2 >